import axios from "@/axios";

export function queryPostList(params) {
    params.searchText = params.text
    return axios.post("/post/list/page/vo", params)
}

export function queryUserList(params) {
    params.userName = params.text
    return axios.post("/user/list/page", params)
}

export function queryPictureList(data) {
    return axios.post('/picture/get', {
        pageNum: data.pageNum,
        pageSize: data.pageSize,
        search: data.text
    })
}

export function querySearchAll(data) {
    return axios.post('/search/all', data)
}